Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable security limits around init containers #9973

Merged
merged 4 commits into from
Jul 26, 2016

Conversation

smarterclayton
Copy link
Contributor

[test]

@smarterclayton smarterclayton force-pushed the init_containers branch 2 times, most recently from 0a46ccc to e66c44c Compare July 21, 2016 03:07
@smarterclayton
Copy link
Contributor Author

Should be complete and ready for review @deads2k @pweil-

Did a review on all admission controllers - initial resources is the only upstream one that is not fixed, will file that separately since we're not using it yet.

@smarterclayton
Copy link
Contributor Author

[test]

@smarterclayton
Copy link
Contributor Author

Flake #9976

@smarterclayton
Copy link
Contributor Author

[test]

On Thu, Jul 21, 2016 at 12:05 PM, OpenShift Bot notifications@github.com
wrote:

continuous-integration/openshift-jenkins/test FAILURE (
https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6659/)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#9973 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABG_p2jSApEsjg7KjcykxrKbVYDqAkdrks5qX5jigaJpZM4JRYgc
.

@smarterclayton
Copy link
Contributor Author

Flake #9987 [test]

@smarterclayton
Copy link
Contributor Author

Flake docker hang in extended [test]

@smarterclayton
Copy link
Contributor Author

[test] failure to reach COPR for openvswitch

@smarterclayton
Copy link
Contributor Author

[test] #9355 and conformance crapped the bed

@smarterclayton
Copy link
Contributor Author

[test] extended tests run forever

On Fri, Jul 22, 2016 at 4:45 AM, OpenShift Bot notifications@github.com
wrote:

continuous-integration/openshift-jenkins/test FAILURE (
https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6701/)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#9973 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABG_p8o58jGOUGyM76RGw8tdxT3K_gCIks5qYIMogaJpZM4JRYgc
.

@smarterclayton
Copy link
Contributor Author

[test] extended tests run forever

@smarterclayton
Copy link
Contributor Author

[test] device mapper known flake

On Fri, Jul 22, 2016 at 2:15 PM, OpenShift Bot notifications@github.com
wrote:

continuous-integration/openshift-jenkins/test FAILURE (
https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6726/)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#9973 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABG_p6s_Jj5Gvz_us8GsZVdj7Wv_nM7yks5qYQjdgaJpZM4JRYgc
.

@@ -155,54 +155,61 @@ func (a *clusterResourceOverridePlugin) Admit(attr admission.Attributes) error {

// Reuse LimitRanger logic to apply limit/req defaults from the project. Ignore validation
// errors, assume that LimitRanger will run after this plugin to validate.
glog.V(5).Infof("%s: initial pod limits are: %#v", api.PluginName, pod.Spec.Containers[0].Resources)
glog.V(5).Infof("%s: initial pod limits are: %#v", api.PluginName, pod.Spec)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a tool to go from this output in a log to something more readable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I'm aware of, since this can be across multiple containers, init containers, requests, and limits (and potentially annotations). Might be nice in the future.

@smarterclayton
Copy link
Contributor Author

smarterclayton commented Jul 23, 2016 via email

@@ -46,6 +50,18 @@ func (p *TestPod) WithBuild(t *testing.T, build *buildapi.Build, version string)
return p.WithAnnotation(buildapi.BuildAnnotation, build.Name).WithEnvVar("BUILD", string(encodedBuild))
}

func (p *TestPod) InitEnvValue(name string) string {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used anywhere or just here for future work? Didn't see it being called.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just copied to make sure it wasn't inconsistent.

@pweil-
Copy link

pweil- commented Jul 25, 2016

2 questions (log statement and nil check) then LGTM

@smarterclayton
Copy link
Contributor Author

Updated, [merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Jul 25, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6867/) (Image: devenv-rhel7_4664)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 38120a8

@smarterclayton
Copy link
Contributor Author

[test] #9959

@smarterclayton
Copy link
Contributor Author

[test] conformance hang

On Mon, Jul 25, 2016 at 6:30 PM, OpenShift Bot notifications@github.com
wrote:

continuous-integration/openshift-jenkins/test ABORTED (
https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6854/)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#9973 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABG_pybkSnMnllQjgrU6qIuX5uAGLKSoks5qZTjwgaJpZM4JRYgc
.

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 38120a8

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6867/)

@openshift-bot openshift-bot merged commit 4666c70 into openshift:master Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants